package cn.xiaopengstack.domain.award.model.entity;

import cn.xiaopengstack.domain.activity.model.entity.RaffleActivityEntity;
import cn.xiaopengstack.domain.award.model.valobj.AwardStateVO;
import cn.xiaopengstack.domain.strategy.model.entity.StrategyAwardEntity;
import cn.xiaopengstack.domain.strategy.model.entity.StrategyEntity;
import cn.xiaopengstack.domain.strategy.model.entity.UserEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author jiangyangang
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserAwardOrderEntity {
    /** 用户ID */
    private UserEntity user;
    /** 策略ID */
    private StrategyEntity strategyEntity;
    /**
     * 奖品实体
     */
    private StrategyAwardEntity awardEntity;

    /**
     * 活动实体
     */
    private RaffleActivityEntity activityEntity;
    /**
     * 订单流水
     */
    private String orderId;
    /** 中奖时间 */
    private Date awardTime;
    /** 奖品状态；create-创建、completed-发奖完成 */
    private AwardStateVO awardState;

}
